Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Bug 632572 - CommonJS test adapter #93

Merged
10 commits merged into from Feb 16, 2011
Merged

Conversation

Gozala
Copy link
Contributor

@Gozala Gozala commented Jan 15, 2011

No description provided.

if ('operator' in options)
assertionError.operator = options.operator;
assertionError.message = options.message;
assertionError.stack = new Error().stack;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right I had to return assertionError

}
},
/**
* The equality assertion tests shallow, coercive equality with `=`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've fixed that!

@Gozala
Copy link
Contributor Author

Gozala commented Feb 8, 2011

As I suggested on the IRC I have modified this pull request to point to a different bug.
https://bugzilla.mozilla.org/show_bug.cgi?id=632572

There for scope of is changed and it only aims to get CommonJS test adapter.

@Gozala
Copy link
Contributor Author

Gozala commented Feb 8, 2011

Also I think that code follows all the conventions, if you see where it's not can you please comment inline or post a line number ?

// See for details: http://wiki.commonjs.org/wiki/Unit_Testing/1.1
let Assert = suite.Assert || BaseAssert;

// Going through each item in the test suit and wrapping it into a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: suit -> suite

@Gozala
Copy link
Contributor Author

Gozala commented Feb 13, 2011

Not sure why this pull request does not wants to pick up new changes so I made a new one:

#108

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants